package com.zsc.oj.constant;

public interface RedisConstant {

    String USER_SIGN_IN_PREFIX = "user:signins";

    /**
     * 设置redis的key
     * @param year
     * @param userId
     * @return
     */
    static String getUserKey(int year,long userId){
        return String.format("%s:%s:%s",USER_SIGN_IN_PREFIX , year , userId);
    }
}
